<?php
class FlinkAction extends CommonAction {
	function index() {
		$Flink = M ( 'Flink' );
		$this->assign ( 'flinkList', $Flink->select () );
		$this->display ();
	}
	function add() {
		if ($_POST) {
			$Flink = M ( 'Flink' );
			$Flink->add ( $_POST );
			$this->redirect ( 'index' );
		}
		$this->display ();
	}
	
	function delete(){
		$Flink = M ( 'Flink' );
		$Flink->delete($this->_get('flink_id'));
		$this->redirect ( 'index' );
	}
}